<template>
  <div @click="ssb('杰哥')">
    <a href="https://jd.com" @click.prevent.stop="dsb">去京东</a><br>
    <a href="https://jd.com" @click.prevent.stop="esb('菊哥')">去京东</a>
  </div>
</template>

<script>
export default {
methods:{
  dsb(){
    console.log('购物')
  },
  esb(name){
    console.log(name+'去购物')

  },
   ssb(name){
    console.log(name+'去购物')

  }
}
}
</script>

<style>
div{
  width: 200px;
  height: 200px;
  background-color: pink;
}
</style>

